let requestUtil = require('@/api/http/request.js');

//百度地图创建终端
export const createEntityAPI = (params) => {
	return requestUtil('https://apis.map.qq.com/tracks/entity/create', 'post',params, '');
}

//百度地图上传轨迹
export const traceUploadAPI = (params) => {
	return requestUtil('http://apis.map.qq.com/tracks/trace/upload',  'post',{}, '','',true,{},true,params);
}


//百度地图轨迹查询
export const traceSearchAPI = (params) => {
	return requestUtil('https://apis.map.qq.com/tracks/trace/search', 'get',params, '');
}


//高德地图纠偏
export const traceSearchGaodeAPI = (params,data) => {
	return requestUtil('https://restapi.amap.com/v4/grasproad/driving', 'post',params, '','',true,{},true,data);
}


